Advantages of using [] over new Array() in JavaScript

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-03-25T15:49:29Z Indexed on 2010/03/25 15:53 UTC
Read the original article Hit count: 378

What are the advantages of using

var foo = []; 

over using

var bar = new Array();

i've been told to use [] over new Array() but never with much explanation

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-execution